sum = 2
repeat
   sum = sum ^ 2 --幂操作
   print(sum)
until sum >1000
